package com.taobao;


import cn.hutool.core.io.FileUtil;
import cn.hutool.extra.qrcode.QrCodeUtil;
import cn.hutool.extra.qrcode.QrConfig;
import org.junit.jupiter.api.Test;

import java.io.File;

public class test {


    @Test
    void test() {


        String content = "嗷嗷嗷";
        int width = 200;
        int height = 200;
        File targetFile = FileUtil.file("e:\\webchat.png");
        QrConfig qrConfig = new QrConfig(width, height);
        qrConfig.setImg(FileUtil.file("img/weixin_logo.png")); // 设置logo图片
        QrCodeUtil.generate(content, qrConfig, targetFile);


    }
}
